chrome.extension.sendRequest({reqtype: 'options'}, function(response) {
	function hasClass(ele,cls) {
		return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
	}
	if(hasClass(document.body, "WelcomePage")){
		if (response.options.rounded_corners == "1" || response.options.rounded_corners == "2" || response.options.rounded_corners == "3") {
			  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
			  style.type = 'text/css';
			  style.innerHTML = "#pageFooter, .loggedout_menubar_container, .WelcomePage_MainSellCenter, .WelcomePage_MainSell {-moz-border-radius:10px; -webkit-border-radius: 10px; border-radius: 10px;}";
		}		
		if (response.options.bgFirstPage) {
			// Background Type
			if (response.options.mainBackgroundType == "0") {
					document.body.style.background = '#FFFFFF !important';
			}
			if (response.options.mainBackgroundType == "1") {
					document.body.style.background = '-webkit-gradient(linear, left top, left bottom, from('+response.options.mainBackgroundGradientFrom+'), to('+response.options.mainBackgroundGradientTo+')) fixed !important';
			}
			if (response.options.mainBackgroundType == "2") {
					document.body.style.background = response.options.mainBackgroundSolid;
			}
			if (response.options.mainBackgroundType == "3") {
				if (response.options.bgIMGTiled){
					var bg_space = document.body;
					var bg_div = document.createElement('div');
					bg_div.className = 'bg';
					bg_space.insertBefore(bg_div, bg_space.firstChild);
					style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
					style.type = 'text/css';
					style.innerHTML = ".bg{min-height: 100%; min-width: 1024px; width: 100%; height: auto; position: fixed; top: 0; left: 0; z-index:-10; background-repeat:repeat; background:url(" + response.options.mainBackgroundUrl + ");}";			
				}
				else {
					var bg_space = document.body;
					var bg_img = document.createElement('img');
					bg_img.src = response.options.mainBackgroundUrl;
					bg_img.className = 'bg';
					bg_space.insertBefore(bg_img, bg_space.firstChild);
					style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
					style.type = 'text/css';
					style.innerHTML = "img.bg{min-height: 100%; min-width: 1000px; width: 100%; height: auto; position: fixed; top: 0; left: 0; z-index:-10;}";
				}
			}
		}		
	}
	else {
	$('#pageHead').wrap('<div id="PHWrapper"></div>').css({"width":"987px !important","background-color":"#3B5998","height":"41px","margin-left":"-6px !important"});

	//Add extra Logout to the Menu
	if (response.options.addLogout) {
		$("#pageNav li#navAccount ul li:last").clone().prependTo("#pageNav");
	}

	//Make Klick on Facebook Logo allways display the Live Feed
	if (response.options.lfdefault) {
			document.getElementById("pageLogo").firstChild.href = "http://www.facebook.com/?sk=lf";
	}
	//Shorten FB for Roboform
	if (response.options.roboform) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".fbDockWrapper{bottom:30px;}";
	}
	
	//Add Options Link to Account Menu
	if (response.options.optlink_account) {
		var optionsLi = document.createElement('li');
		var optionsLink = document.createElement('a');
		optionsLink.href = chrome.extension.getURL('options.html');
		optionsLink.target = '_blank';
		optionsLink.textContent = 'Options';
		optionsLink.className = 'dropdown_item';
		optionsLi.appendChild(optionsLink);
		document.getElementById('navAccount').getElementsByTagName('ul')[0].appendChild(optionsLi);
	}
	
	//Add Options Link to Main Menu
	if (response.options.optlink_main){
		var option = "";
		var optionid = "";
		if(response.options.version != "209" || response.options.version == null){
			option = "Options (Updated)";
			optionid = "options_menu_updated";
		}
		else {
			option = "Options";
			optionid = "options_menu";
		}
		var konto_var = document.getElementById("navAccount");
		var new_options = document.createElement('li');
		new_options.id = "beautify_options";
		new_options.innerHTML = "<a href=\""+chrome.extension.getURL('options.html')+"\" target=\"_blank\" id=\""+optionid+"\">"+option+"</a>";
		konto_var.parentNode.insertBefore(new_options,konto_var);	
	}
	
	// Semi Tranparency in Header
	if (response.options.transperentFBBar) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageHead {opacity: " + response.options.leftTransparencyNormal/100 + " !important;} #pageHead:hover {opacity: " + response.options.leftTransparencyHover/100 + " !important;}";
	}
	
	// Semi Tranparency in LeftBar
	if (response.options.transperentLeftBar) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#leftCol{opacity: " + response.options.leftTransparencyNormal/100 + " !important;} #leftCol:hover {opacity: " + response.options.leftTransparencyHover/100 + " !important;}";
	}
	
	// Semi Tranparency in RightBar
	if (response.options.transperentRightBar) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#rightCol{opacity: " + response.options.rightTransparencyNormal/100 + " !important;} #rightCol:hover {opacity: " + response.options.rightTransparencyHover/100 + " !important;}";
	}
	// Semi Tranparency in Content
	if (response.options.transperentcontentArea) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#contentArea{opacity: " + response.options.contentAreaTransparencyNormal/100 + " !important;} #contentArea:hover {opacity: " + response.options.contentAreaTransparencyHover/100 + " !important;}";
	}
	
	// Fix left column
	if (response.options.leftColFixed) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".home #leftCol {position:fixed !important;}";
	}
	
	// Fix right column
	if (response.options.rightColFixed) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".home #rightCol {position:fixed !important; margin-left:540px;}";
	}

	// Fix NavBar
	if (response.options.navBarFixed) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageHead, #blueBar {position:fixed !important;}";
	}
	else {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageHead, #blueBar {position:absolute !important;}";
	}
	
	// Message Border
	if (response.options.message_border) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".uiStreamStory, .pvm, .UIIntentionalStory {border-style:dashed !important; border-color:#CCC !important; border-width:1px !important;}}";
	}
	
	// Message Shadow
	if (response.options.message_shadow) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".uiStreamStory, .pvm, .UIIntentionalStory { -webkit-box-shadow: 2px 2px 2px #cccccc; -moz-box-shadow: 2px 2px 2px #cccccc; box-shadow: 2px 2px 2px #cccccc;}";
	}
	
	// Message Background
	if (response.options.message_bg) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = ".uiStreamStory, .pvm, .UIIntentionalStory {background:#F4F4F4 !important;}";
	}
	
	
	
	
	// Background Type
	if (response.options.mainBackgroundType == "0") {
			document.body.style.background = '#FFFFFF !important';
	}
	if (response.options.mainBackgroundType == "1") {
			document.body.style.background = '-webkit-gradient(linear, left top, left bottom, from('+response.options.mainBackgroundGradientFrom+'), to('+response.options.mainBackgroundGradientTo+')) fixed !important';
	}
	if (response.options.mainBackgroundType == "2") {
			document.body.style.background = response.options.mainBackgroundSolid;
	}
	if (response.options.mainBackgroundType == "3") {
		if (response.options.bgIMGTiled){
			var bg_space = document.body;
			var bg_div = document.createElement('div');
			bg_div.className = 'bg';
			bg_space.insertBefore(bg_div, bg_space.firstChild);
			style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
			style.type = 'text/css';
			style.innerHTML = ".bg{min-height: 100%; min-width: 1024px; width: 100%; height: auto; position: fixed; top: 0; left: 0; z-index:-10; background-repeat:repeat; background:url(" + response.options.mainBackgroundUrl + ");}";			
		}
		else {
			var bg_space = document.body;
			var bg_img = document.createElement('img');
			bg_img.src = response.options.mainBackgroundUrl;
			bg_img.className = 'bg';
			bg_space.insertBefore(bg_img, bg_space.firstChild);
			style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
			style.type = 'text/css';
			style.innerHTML = "img.bg{min-height: 100%; min-width: 1000px; width: 100%; height: auto; position: fixed; top: 0; left: 0; z-index:-10;}";
		}
	}
	
	if (response.options.hideReqbox) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_netego_requests {display:none !important}";
	}
	if (response.options.hideAdbox) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_adbox, #pagelet_ads, #sidebar_ads, #pagelet_netego_ads, #ego_pane {display:none !important}";
	}
	if (response.options.hideEventbox) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_eventbox {display:none !important}";
	}
	if (response.options.hidePokebox) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_netego_pokes {display:none !important}";
	}
	if (response.options.hideConnectbox) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_netego_lower {display:none !important}";
	}
	if (response.options.hideOnlineFriends) {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pagelet_friends_online {display:none !important}";
	}

	// Rounded Options
	if (response.options.rounded_corners == "1") {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageFooter, #leftCol, .profile .left_column, #rightCol, .hasLeftCol #contentArea, .hasRightCol #contentArea, .fbPrivacyPage, .profilePreviewHeader, .profileVideoContainer, .profile_top_wash, .UIStandardFrame_Content, .uiBoxWhite, .UIGradientWashPage_Container {-moz-border-radius:10px; -webkit-border-radius: 10px; border-radius: 10px;} #blueBar, #pageHead {-moz-border-radius-bottomleft:10px; -webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -moz-border-radius-bottomright:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;} #headerArea, .friendBrowserCheckboxFilters {-moz-border-radius-topleft:10px; -webkit-border-top-left-radius:10px; border-top-left-radius:10px; -moz-border-radius-topright:10px; -webkit-border-top-right-radius:10px; border-top-right-radius:10px;} .profile .right_column, .photos_tab, #profile_pager_container, .uiMorePager, .profile_two_columns .right_column, #blog_main_column {-webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;}";
	}
	if (response.options.rounded_corners == "2") {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageFooter, #leftCol, .profile .left_column, #rightCol, .hasLeftCol #contentArea, .hasRightCol #contentArea, .fbPrivacyPage, .profilePreviewHeader, .profileVideoContainer, .profile_top_wash, .UIStandardFrame_Content, .uiStreamStory, .pvm, .UIIntentionalStory, .uiBoxWhite, .UIGradientWashPage_Container {-moz-border-radius:10px; -webkit-border-radius: 10px; border-radius: 10px;} #blueBar, #pageHead {-moz-border-radius-bottomleft:10px; -webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -moz-border-radius-bottomright:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;} #headerArea, .friendBrowserCheckboxFilters {-moz-border-radius-topleft:10px; -webkit-border-top-left-radius:10px; border-top-left-radius:10px; -moz-border-radius-topright:10px; -webkit-border-top-right-radius:10px; border-top-right-radius:10px;} .profile .right_column, .photos_tab, #profile_pager_container, .uiMorePager, .profile_two_columns .right_column, #blog_main_column {-webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;}";
	}
	if (response.options.rounded_corners == "3") {
		  style = document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));
		  style.type = 'text/css';
		  style.innerHTML = "#pageFooter, #leftCol, .profile .left_column, #rightCol, .hasLeftCol #contentArea, .hasRightCol #contentArea, .fbPrivacyPage, .profilePreviewHeader, .profileVideoContainer, .profile_top_wash, .UIStandardFrame_Content, .uiStreamStory, .pvm, .UIIntentionalStory, .uiCloseButton, .uiBoxWhite, .img, .loggedout_menubar_container, #profile_pic, .uiProfilePhotoLarge, .uiProfilePhoto, .uiProfilePhotoMedium, .UIProfileImage, .UIProfileImage_LARGE, .fbChatBuddylist a.friend img, .hoverZoomLink, .uiMediaThumbWrap, .UIGradientWashPage_Container {-moz-border-radius:10px; -webkit-border-radius: 10px; border-radius: 10px;} #blueBar, #pageHead {-moz-border-radius-bottomleft:10px; -webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -moz-border-radius-bottomright:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;} #headerArea, .friendBrowserCheckboxFilters {-moz-border-radius-topleft:10px; -webkit-border-top-left-radius:10px; border-top-left-radius:10px; -moz-border-radius-topright:10px; -webkit-border-top-right-radius:10px; border-top-right-radius:10px;} .profile .right_column, .photos_tab, #profile_pager_container, .uiMorePager, .profile_two_columns .right_column, #all_threads, .thread, .post_editor, #blog_main_column {-webkit-border-bottom-left-radius:10px; border-bottom-left-radius:10px; -webkit-border-bottom-right-radius:10px; border-bottom-right-radius:10px;}";
	}

	//Keyboard Shortcuts
	if (response.options.keyboardShortcuts) {
		window.addEventListener('keypress', function() {
			if (event.shiftKey && !event.target.tagName.match(/text|input|select/i) && event.target.getAttribute('contenteditable') != 'true') {
				switch (String.fromCharCode(event.keyCode).toLowerCase()) {
					case 'h':
						window.location = 'http://www.facebook.com/';
					break;
					case 'p':
						window.location = 'http://www.facebook.com/profile.php';
					break;
					case 'f':
						window.location = 'http://www.facebook.com/friends/?filter=afp';
					break;
					case 'i':
						window.location = 'http://www.facebook.com/inbox';
					break;
					case 's':
						window.location = 'http://www.facebook.com/editaccount.php';
					break;
					case 'c':
						window.location = 'javascript:buddyList.toggleTab()';
					break;
					default:
					break;
				}
			}
		}, false);
	}
	
	//Add Emoticons
	if (response.options.emoticonBar) {
		
		var debugMode = false;
		
		var emotsInfo = new Array();
		emotsInfo[0] = ':)';
		emotsInfo[1] = ':(';
		emotsInfo[2] = ':-P';
		emotsInfo[3] = ':D';
		emotsInfo[4] = ':o';
		emotsInfo[5] = ';)';
		emotsInfo[6] = '8)';
		emotsInfo[7] = '8|';
		emotsInfo[8] = '>:O';
		emotsInfo[9] = ':/';
		emotsInfo[10] = ':\'(';
		emotsInfo[11] = '3:)';
		emotsInfo[12] = 'O:)';
		emotsInfo[13] = ':*';
		emotsInfo[14] = '<3';
		emotsInfo[15] = '^_^';
		emotsInfo[16] = ';)';
		emotsInfo[17] = 'o.O';
		emotsInfo[18] = '>:O';
		emotsInfo[19] = ':v';
		emotsInfo[20] = ':3';
		emotsInfo[21] = ':|]';
		emotsInfo[22] = '(^^^)';
		emotsInfo[23] = '<(")';
		emotsInfo[24] = ':putnam:';
		emotsInfo[25] = '*msg*';
		emotsInfo[26] = '_msg_';
		
		var fEmotBarDom = document.createElement('div');
		fEmotBarDom.setAttribute('class','emote_iconbar_class');
		fEmotBarDom.setAttribute('id','emote_iconbar_id');
		fEmotBarDom.setAttribute('style','width:254px; height:38px; border-top:1px solid #93A2C1;');
		
		for(i=0;i<emotsInfo.length;i++) {
			var fEmotsDom = document.createElement('a');
			fEmotsDom.setAttribute('style','cursor: pointer; background: transparent url('+chrome.extension.getURL("icons/"+i+".png")+') no-repeat; width:16px; height:16px; margin:1px; float:left;');
			fEmotsDom.setAttribute('src','http://static.ak.fbcdn.net/images/blank.gif');
			fEmotsDom.setAttribute('class','_FBCT_EXT_emote_img emote_img');
			fEmotsDom.setAttribute('rel',emotsInfo[i]);
			fEmotsDom.setAttribute('value','&nbsp;');
			fEmotBarDom.appendChild(fEmotsDom);
		}
		
		document.addEventListener("DOMNodeInserted", fInsertedNodeHandler, false);
	
		function showAlert(str){
			if (debugMode) alert(str);
		}
		
		function fInsertedNodeHandler(event) {
			try{
				elm = jQuery(event.target);
			if(elm.hasClass('fbDockChatTab')&&
				!jQuery('.emote_iconbar_class',elm).length)	
				fInsertEmotBar(event.target);
			}catch(e){showAlert('fInsertedNodeHandler: ' + e.message)}
		}
		
		function fInsertEmotBar(fChatWrapper) {
			try{
				showAlert('fChatWrapper = ' + fChatWrapper.className);
				fChatToolBox = fChatWrapper.getElementsByClassName('inputContainer')[0];
				fNewEmotBar = fEmotBarDom.cloneNode(true);
				if(fChatToolBox.childNodes) fChatToolBox.insertBefore(fNewEmotBar,fChatToolBox.lastChild);
				else fChatToolBox.appendChild(fNewEmotBar);
				$('a',fNewEmotBar).bind('click',fEmotClickHandler);
				$('._FBCT_EXT_emote_get',fNewEmotBar).bind('click',fEmotClickHandler);
			}catch(e){showAlert('fInsertEmotBar: ' + e.message)}
		}
		
		function fEmotClickHandler(event){
			try{
				elm = event.target;
				showAlert('elm: '+elm);
				var fChatInput = event.target.parentNode.parentNode.getElementsByClassName('input')[0];
				fChatInput.value += ' '+event.target.getAttribute('rel')+' ';
				fChatInput.focus();
			}catch(e){showAlert('fEmotClickHandler: ' + e.message)}
		}
	}
	
	if (response.options.audioalert) {
		sound = response.options.audiosound;
		remider = response.options.audioreminder;
		timer = response.options.audiotimer;
		i = '<audio id="notificationaudio" src="http://beautify.it/gplus/'+sound+'.ogg" style="display:none; visibility:hidden;"></audio>';
		var d = $('#pageLogo');
		d.append(i);
		function audiocheck() {
			if (document.getElementById('notificationsCountValue').innerHTML != "0" || document.getElementById('messagesCountValue').innerHTML != "0" || document.getElementById('requestsCountValue').innerHTML != "0"){
				if (response.options.audioreminder){
					audio = document.getElementById('notificationaudio');
					audio.play();
					setTimeout(audiocheck, timer);
				}
				else {
					audio = document.getElementById('notificationaudio');
					audio.play();
				}
			}
			else {
				setTimeout(audiocheck, 10000);
			}
		}
		setTimeout(audiocheck, 15000);
	}
	
	//Favicon Alerts
	
	if (response.options.faviconAlerts) {		
//		var head = document.getElementsByTagName('head')[0];
//		var links = head.getElementsByTagName('link');
//		for (var i in links) {
//			if (links[i].rel == 'shortcut icon') {
//				links[i].type = 'image/png';
//				var shortcutLink = links[i];
//			}
//		}

		var shortcutLink = document.createElement("link");
		shortcutLink.type = 'image/png';
		shortcutLink.rel = 'shortcut icon';
		var head = document.getElementsByTagName('head')[0];
		head.appendChild(shortcutLink);
		function updateFavicon() {
			if (document.getElementById('notificationsCountValue').innerHTML != "0" || document.getElementById('messagesCountValue').innerHTML != "0" || document.getElementById('requestsCountValue').innerHTML != "0"){
				var count = parseInt(document.getElementById('requestsCountValue').textContent) + parseInt(document.getElementById('messagesCountValue').textContent) + parseInt(document.getElementById('notificationsCountValue').textContent);
				var canvas = document.createElement('canvas');
				canvas.height = '16';
				canvas.width = '16';
				if (canvas.getContext) {
					var context = canvas.getContext('2d');
					context.fillStyle = '#FEF4AC';
					context.strokeStyle = '#DABC5C';
					context.font = '8px Micro';
					context.textBaseline = 'hanging';
					var base = new Image();
					base.addEventListener('load', function() {
						context.drawImage(base, 0, 0);
						if (count > 0 && count < 10) {
							context.fillRect(9, 2, 7, 9);
							context.strokeRect(9, 2, 7, 9);
							context.fillStyle = '#000000';
							context.fillText(count, 11, 4);
						} else if (count > 9 && count < 100) {
							context.fillRect(5, 2, 11, 9);
							context.strokeRect(5, 2, 11, 9);
							context.fillStyle = '#000000';
							context.fillText(count, 7, 4);
						} else if (count > 99 && count < 1000) {
							context.fillRect(1, 2, 15, 9);
							context.strokeRect(1, 2, 15, 9);
							context.fillStyle = '#000000';
							context.fillText(count, 3, 4);
						} else if (count > 999 && count < 10000) {
							context.fillRect(1, 2, 15, 9);
							context.strokeRect(1, 2, 15, 9);
							context.fillStyle = '#000000';
							context.fillText(Math.floor(count/1000)+'K+', 3, 4);
						} else if (count > 10000) {
							context.fillRect(5, 2, 11, 9);
							context.strokeRect(5, 2, 11, 9);
							context.fillStyle = '#000000';
							context.fillText('#', 7, 4);
						}
						shortcutLink.href = canvas.toDataURL();
					});
					base.src = '';
				}
			} else {
				shortcutLink.type = 'image/x-icon';
				shortcutLink.href = 'http://facebook.com/favicon.ico';
			}
			var frame = document.createElement('iframe');
			frame.display = 'none';
			frame.src = shortcutLink.href;
			document.body.appendChild(frame);
			document.body.removeChild(frame);
			setTimeout(updateFavicon, 5000);
		}
		updateFavicon();
	}
	}

	if(response.options.version != "209" || response.options.version == null){
		if(confirm("Please help me win a competition!\r\n\r\nTo do so, just klick OK and a new windows will open.\r\nNow just klick Like on the Page and you are done.\r\n\r\nOr klick Cancel to never be bothered again.")){
			window.open(chrome.extension.getURL('options.html'),'Options');
			window.open('http://www.epubli.de/shop/buch/2000000008631','VoteNow');
		}
		else {
			window.open(chrome.extension.getURL('options.html'),'Options');
		}
	}
});